-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update checkmark ListItem
styling
#2464
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't allow me to suggest on removed lines, so I'm leaving a comment here for how we can simplify the CSS and achieve the same result
.hds-dropdown-list-item--variant-checkmark-selected {
.hds-dropdown-list-item__checkmark {
color: var(--token-color-foreground-action);
}
}
main points:
color: var(--token-color-foreground-primary);
is set by the color modifier, so no need to override it onhds-dropdown-list-item__interactive
.hds-dropdown-list-item__checkmark
doesn't need to be nested underhds-dropdown-list-item__interactive
Thanks for the suggestion @alex-ju ! That does indeed simplify things, I've incorporated that change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one minor suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for the quick update.
cc @Dhaulagiri Here's one other visual change I forgot to mention in our chat today coming out of the Figma v2.0 work
@KristinLBradley thanks for the suggestion, I've added a bit more context here! |
π Summary
If merged this PR will update the styling of the selected state checkmark
ListItem
in theDropdown
to match the other variants.π οΈ Detailed description
Currently, the selected state of the checkmark
ListItem
styles the icon, label, and checkmark withForeground / Action
, which differs from the selected state of the otherListItem
's where the icon and label persist the usage ofForeground / Primary
.However, because the checkmark variant is slightly different in interaction, I have left the hover and active states unchanged, only the resting/default state of the selected checkmark has been updated.
πΈ Screenshots
Before
After
π External links
Jira ticket: HDS-3895
Figma file: Figma v2.0 Library | Dropdown
π Component checklist
π¬ Please consider using conventional comments when reviewing this PR.